package com.loukou.lkt.lkt.enums;

public enum GoodsStockPositionTypeEnum {
	TYPE_Normal(0,"正常库区"),
	TYPE_Abnormal(1,"异常库区");
	
	private int id;
	private String name;
	private GoodsStockPositionTypeEnum(int id, String name) {
		this.id = id;
		this.name = name;
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static GoodsStockPositionTypeEnum parsePositionTypeEnum(int id) {
		for (GoodsStockPositionTypeEnum typeEnum : GoodsStockPositionTypeEnum.values()) {
			if(typeEnum.id == id){
				return typeEnum;
			}
		}
		return TYPE_Normal;
	}
}
